package com.zrh.jsd.service.studydemo.java8stream;

public class LambdaTest {
    public static void main(String[] args) {
        new Thread(() -> System.out.println("hello world")).start();

        start(() -> System.out.println("hello world"));
    }
    public static void start(myRun2 run2){
        new Thread(run2).start();
    }
    //
    @FunctionalInterface
    public interface myRun2 extends Runnable{
        default void run2() {}
        String toString();
        boolean equals(Object o);
    }
}
